﻿#ifndef _PROPTIPMANAGER_H_
#define _PROPTIPMANAGER_H_
#include <list>
#include "PropTip.h"
using namespace std;
//class PropTip;//声明PropTip类
class PropTipManager
{
public:
	void addPropTip(PropTip* propTip);//参数：要添加敌机的指针
	void collection(PropTip* propTip);//参数：要回收敌机的指针
	bool isPropInPropTip(PropType type);//判断捡到的道具是否在这个PropTip管理类中
	static PropTipManager* getInstance() {
		if (nullptr == pInstance)
		{
			pInstance = new PropTipManager();
		}
		return pInstance;
	}
	~PropTipManager();
	void clearList();	//清空集合
	int getPropListNumber() const {
		return propTipList.size();
	}
public:
	list<PropTip*> propTipList;
private:
	static PropTipManager* pInstance;
	PropTipManager();

};
#endif // !_PROPTIPMANAGER_H_



